package salary.calculation.common.enumerate;

import salary.calculation.common.BusinessExceptionAssert;

public enum ServletResponseEnum implements BusinessExceptionAssert {
    /**
     * Request error
     */
    REQUEST_ERROR(9001, "Request error.")
    ;

    ServletResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
